<?php
namespace Home\Model;
use Think\Model;

//++++++++++++++无限级分类++++++++++++++

class HelloModel extends Model { 
  		 
       public function getHello(){
        $av = $this->table(array('hello'=>'h','type'=>'t'))->field('h.*,t.name')->where('h.typeid=t.id')->select();

        foreach ($av as $key => $value) {
          
        }
        
          return $arr;

       }	

      
  }